<?php
if ($_SESSION['login_user']['status'] != 'admin' || LZ_MODULE != 'admin') die('Access Denied');
if($_SESSION['login_user']['status'] != 'admin')
{
	lz_exit(ACCESS_DENIED,'admin.php',1);
}
include_once('model/photo.php');
$obj = new LZ_Photo;
$m = $_GET['m'];
$id = intval($_GET['id']);
$ids = $_GET['ids'];
$time = $_GET['time'];


if ($time == 'all' || !$time)
{
	$image_list = $obj->get_list(array('status' => 0,'order'=>'photo_id','asc'=>'DESC'));
}
else if (intval($time))
{
	$uptime = time() - $time*60;
	$uptime = date('Y-m-d H:i:s',$uptime);
	$image_list = $obj->get_list(array('status' => 0,'update_time' => $uptime,'order'=>'photo_id','asc'=>'DESC'));
}


$_SESSION['last_list_page'] = 'admin.php?p=photo_unpublished';
$view_data['image_list'] = $image_list;
$view_data['page_description'] = UNPUBLISHED_IMAGES;
?>